/*
 * IBasicDao.java
 *
 * Created on 2007年10月6日, 下午9:53
 *
 */

package jeffxu.dao;

import java.util.List;

/**
 * A basic interface to be implemented by it's subclass that to make the dao
 * septate from all other dao framework like hibernate or jdbc.
 * @author jeff
 */
public interface IBasicDao<T> {
    
    void create(T t)throws Exception;
    void insert(T t)throws Exception;
    int delete(T t)throws Exception;
    int update(T t)throws Exception;
    List<T> find(Query q)throws Exception;
    
}
